/*******************************************************************
 *
 * Copyright (C), 2021-2022, LS, All rights reserved.
 *
 * Author      : 
 * Create Time : 2021-09-17
 * Version     : v0.1
 * Description : 
 *******************************************************************/
 
#ifndef _LS_BLE_SDK_API_H_
#define _LS_BLE_SDK_API_H_

/*----------------------------Head file----------------------------*/
#include "stdint.h"

/*----------------------------macro file---------------------------*/
#define CUSTOM_PROTO_SUCCESS    0

#define DEV_MAC_INVALID         0
#define DEV_MAC_VALID           1

/*----------------------------type define--------------------------*/
typedef enum {
    LS_BLE_SDK_CB_EVT_NULL = 0,
    
    LS_BLE_SDK_CB_EVT_CONNECT,
    LS_BLE_SDK_CB_EVT_DISCONNECT,
    
    LS_BLE_SDK_CB_EVT_OTA_START,
    LS_BLE_SDK_CB_EVT_OTA_DONE,
    LS_BLE_SDK_CB_EVT_OTA_EXIT,
    
    LS_BLE_SDK_CB_EVT_CUS_IND_ENABLE,
    LS_BLE_SDK_CB_EVT_CUS_IND_DISABLE,
    LS_BLE_SDK_CB_EVT_CUS_IND_COMPLETE,
    
    
} ls_ble_sdk_cb_evt_t;


typedef struct {
    ls_ble_sdk_cb_evt_t evt;
    uint8_t *p_data;
    uint16_t len;
} ls_ble_sdk_cb_evt_param_t;


/*----------------------------var define---------------------------*/

/*-------------------------func declaration------------------------*/
extern void ls_ble_sdk_service_init(void);
extern void ls_ble_sdk_callback(ls_ble_sdk_cb_evt_param_t* param);
extern void ls_ble_udpate_skip_scan_data(void);

/*-----------------------------------------------------------------*/

#endif
